package cn.hcbycloud.code.model;

import cn.hcbycloud.common.mysql.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据源表
 *
 * @author gaoheng
 */
@Data
@TableName("tb_database_conf")
@EqualsAndHashCode(callSuper = true)
public class TbDatabaseConfEntity extends BaseModel<TbDatabaseConfEntity> {
    private static final long serialVersionUID = 7435361717218166716L;

    /**
     * 数据源名称
     */
    @TableField("db_name")
    private String dbName;

    /**
     * 数据源唯一标识
     */
    @TableField("alias")
    private String alias;

    /**
     * jdbc URL
     */
    @TableField("url")
    private String url;

    /**
     * 数据库用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 数据库密码
     */
    @TableField("password")
    private String password;

}
